package com.example.cloud.model.statistics;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wt on 2019/1/5.
 * 信用分记录
 */
@Entity(name = "score_record")
@Data
@EqualsAndHashCode(callSuper = false)
public class ScoreRecord extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 患者名称
    @Column(name = "patient_name")
    private String patientName;
    // 操作类型 1：加分 2：减分
    @Column(name = "type")
    private int type;
    // 分值
    @Column(name = "score")
    private int score;
    // 备注
    @Column(name = "remark")
    private String remark;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
